import axios from "axios";


axios.defaults.baseURL = "https://m.maoyan.com";


axios.interceptors.response.use(
  (response) => {
    return response.data || response;
  },
  (error) => {
    return Promise.reject(error);
  }
);
export const get = (url) => {
  return axios.get(url);
};
export const post = (url, data = {}) => {
  return axios.post(url, data);
};

// export default axios
